home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3439 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: wairc.govt.nz!evanw
  2. From: evanw@wairc.govt.nz (Evan Wilson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Logged in Username on Win 3.1
  5. Message-ID: <1996Jan24.155447.204@wairc.govt.nz>
  6. Date: 24 Jan 96 15:54:47 +1200
  7. Reply-To: EVANW@WAIRC.GOVT.NZ
  8. Organization: Waikato Regional Council
  9.  
  10. I need a routine to return the logged in username in Windows 3.1.  I have been
  11. experimenting with using the NetWkstaGetInfo routine in NETAPI.DLL.  I am
  12. getting General Protection Faults whenever my code enters this routine however.
  13.  
  14. I am using Microsoft Visual C++ v1.5.  This version doesn't come with any
  15. header files for the Lan Manager routines, and the LM*.H routines with v2.0
  16. don't compile against v1.5.
  17.  
  18. Can anyone help with the function definitions for NetWkstaGetInfo routine.
  19. Any help will be much appreciated.
  20.  
  21. Evan Wilson
  22. _________________________________________________________________
  23. Evan Wilson             PO Box 4010           Ph  ++64-7-856-7184
  24. Environment Waikato     3 Cook St             Fax ++64-7-856-8089
  25.                         Hamilton                
  26. evanw@wairc.govt.nz     New Zealand
  27.